<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./js/jquery.min.js"></script>
</head>
<body>
    <button>点我干嘛</button>
    <button>点我干嘛</button>
    <button>点我干嘛</button>
    <button>点我干嘛</button>
    <button>点我干嘛</button>

    <script>
        $('button').click(function(){
            // $(this).css('color','pink');
            // $(this).siblings().css('color','');

            //链式写法
            $(this).css('color','pink').siblings().css('color','');
        })
    </script>
</body>
</html>